package com.cloudkinto.cron;

import com.alibaba.fastjson.JSONObject;
import com.cloudkinto.common.common.DateUtils;
import com.cloudkinto.common.constant.GlobalConstants;
import com.cloudkinto.common.constant.SysConstant;
import com.cloudkinto.common.utils.OkHttpUtils;
import com.cloudkinto.common.utils.TimeUtils;
import com.cloudkinto.dao.*;
import com.cloudkinto.entity.*;
import com.cloudkinto.service.finance.CompanyAccountService;
import com.cloudkinto.service.finance.CostRecordService;
import com.cloudkinto.service.finance.vo.FianceChinaBankVo;
import com.cloudkinto.service.headercontainer.HeaderContainerService;
import com.cloudkinto.service.order.OrderAmazonService;
import com.cloudkinto.service.order.OrderRakutenService;
import com.cloudkinto.service.orderoutput.OrderOutputService;
import com.cloudkinto.service.orderqoo.OrderQoo10Service;
import com.cloudkinto.service.stock.StockLogService;
import com.cloudkinto.service.tailtrucks.TailTrucksService;
import com.cloudkinto.service.user.WxUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.data.redis.core.RedisTemplate;
import org.springframework.http.HttpMethod;
import org.springframework.scheduling.annotation.Async;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;
import org.springframework.util.CollectionUtils;

import java.math.BigDecimal;
import java.util.*;
import java.util.stream.Collectors;

/**
 * @author zhangyy
 * @date 2020/6/18 16:03
 * @description: 定时任务
 */
@Component
public class CronUtilService {

    @Autowired
    private RedisTemplate redisTemplate;
    @Autowired
    private OrderInputDao orderInputDao;
    @Autowired
    private StockRecordDao stockRecordDao;
    @Autowired
    private ProductInfoDao productInfoDao;
    @Autowired
    private StockHistoryDao stockHistoryDao;
    @Autowired
    private CompanyAccountService mCostService;
    @Autowired
    private OrderOutputService mOrderOutService;
    @Autowired
    private ExchangeRateDao mExchangeRateDao;
    @Autowired
    private OrderRakutenService mRakutenOrderService;
    @Autowired
    private OrderAmazonService mOrderAmzonService;
    @Autowired
    private OrderQoo10Service mOrderQoo10Service;
    @Autowired
    private StorageDao storageDao;
    @Autowired
    private CostRecordService costRecordService;
    @Autowired
    private OrderBackDao orderBackDao;
    @Autowired
    private WxUserDao wxUserDao;
    @Autowired
    private CostRecordDao costRecordDao;
    @Autowired
    private CompanyAccountDao companyAccountDao;
    @Autowired
    private CompanyDao companyDao;
    @Autowired
    private WxUserService wxUserService;
    @Autowired
    private TailTrucksService tailTrucksService;
    @Autowired
    private HeaderContainerService headerContainerService;
    @Autowired
    private ShopDao shopDao;
    @Autowired
    private StockLogService stockLogService;
    @Value("${gbc.uploadPath.filePathLocal}")
    private String filePath;


    private static double m6Cost = 0;
    private static double m5Cost = 0;
    private static double m4Cost = 0;
    private static double m3Cost = 0;
    private static double m2Cost = 0;
    private static double m1Cost = 0;

    //


}